import request from "@/utils/request"
// 用户登录
export function getLogin(data) {
	return request('/client/auth/login', {
		method: 'post',
		data: data
	})
}
//发送手机验证
export function get_reg_sms(data) {
	return request('/client/resource/sms/code', {
		method: 'get',
		params: data
	})
}
//发送手机code
export function get_reg_code() {
	return request('/client/auth/code', {
		method: 'get',
	})
}
// 校验手机号唯一
export function checkPhoneUnique(data) {
	return request(`/client/auth/checkPhoneUnique/`+data, {
		method: 'get',
	})
}

// 重置密码
export function restPassword(data) {
	return request('/client/auth/restPassword', {
		method: 'post',
		data: data
	})
}
// 注册
export function person_register(data) {
	return request('/client/auth/registerSms', {
		method: 'post',
		data: data
	})
}


export function getInfo() {
	return request(`/application/user/getInfo`, {
		method: 'get',
	})
}
// 查询字典类型
export function getDict() {
    return request({
        url: "/client/dict",
        method: "get",
    })
}
